package com.imooc.service.impl;

import com.imooc.dataobject.SellerInfo;
import com.imooc.repository.SellInfoRepository;
import com.imooc.service.SellerInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**SellerInfo Service Impl
 * @author liuhuan
 * @date 2018/7/22 10:26
 * @description
 */
@Service
public class SellerInfoServiceImpl implements SellerInfoService {

    @Autowired
    private SellInfoRepository sellInfoRepository;

    @Override
    public SellerInfo findSellerInfoByOpenId(String openId) {
        return sellInfoRepository.findByOpenId(openId);
    }
}
